﻿#ifndef SETTING_H
#define SETTING_H

struct Setting
{
    int period = 23;
    int volume = 543;
    int cur_max = 25;
    int volt_min = 10;
    bool operator==(const Setting& a)
    {
        return period == a.period && volume == a.volume
                && cur_max == a.cur_max && volt_min == a.volt_min;
    }
    bool operator!=(const Setting& a)
    {
        return !operator==(a);
    }
};

struct Injector
{
    int in_ip;
    int in_port;
    Setting setting;
    int status_volremain;
    int status_battery;
    int error;
};

#endif // SETTING_H
